<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>showAll</title>
</head>
<body>
<ul th:each="user:${userList}">
    <li><span th:text="${user.id}"></span></li>
    <li><span th:text="${user.name}"></span></li>
    <li><span th:text="${user.age}"></span></li>
    <li><span th:text="${#dates.format(user.bir,'yyyy-MM-dd')}"></span></li>
</ul>
</body>
</html>